//
//  DatePickerController.m
//  easystudy
//
//  Created by 七 on 16/9/1.
//  Copyright © 2016年 kane. All rights reserved.
//

#import "DatePickerController.h"

@interface DatePickerController ()


@end

@implementation DatePickerController
@synthesize datePicker;

- (void)viewDidLoad {
    [super viewDidLoad];
    datePicker.maximumDate = [NSDate dateWithTimeIntervalSinceNow:-48*30*24*3600];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)backBtn:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
//    if (self.delegate && [self.delegate respondsToSelector:@selector(modifyDate:)]) {
//        NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
//        [dateFormatter setDateFormat:@"yyyy-MM-dd"];
//        NSString *destDateString = [dateFormatter stringFromDate:datePicker.date];
//        [self.delegate modifyDate:destDateString];
//    }
    if (self.delegate && [self.delegate respondsToSelector:@selector(gerbirthday:)]) {
        [self.delegate gerbirthday:datePicker.date];
    }

}

@end
